<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>ttcps: Ttcps_v3_0</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ttcps
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Ttcps_v3_0</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_ttc_ps___config.html">XTtcPs_Config</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gada91222b52c938cb8639d333ed334273"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#gada91222b52c938cb8639d333ed334273">XTtcPs_Start</a>(InstancePtr)</td></tr>
<tr class="separator:gada91222b52c938cb8639d333ed334273"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8cc3413150e3c510e47cdb706fc3583e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga8cc3413150e3c510e47cdb706fc3583e">XTtcPs_Stop</a>(InstancePtr)</td></tr>
<tr class="separator:ga8cc3413150e3c510e47cdb706fc3583e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga90395ec5242c1fce193ad5697ee976c3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga90395ec5242c1fce193ad5697ee976c3">XTtcPs_IsStarted</a>(InstancePtr)</td></tr>
<tr class="separator:ga90395ec5242c1fce193ad5697ee976c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2e333879788d146e762e8a114159e9e5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga2e333879788d146e762e8a114159e9e5">XTtcPs_GetCounterValue</a>(InstancePtr)&#160;&#160;&#160;(u16)InstReadReg((InstancePtr), <a class="el" href="group__ttcps__v3__0.html#ga5d75d0aff87c36aee0b898282dae8c24">XTTCPS_COUNT_VALUE_OFFSET</a>)</td></tr>
<tr class="separator:ga2e333879788d146e762e8a114159e9e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5fae7226b73f9d3c0b2acd3dd0d70561"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga5fae7226b73f9d3c0b2acd3dd0d70561">XTtcPs_SetInterval</a>(InstancePtr,  Value)&#160;&#160;&#160;InstWriteReg((InstancePtr), <a class="el" href="group__ttcps__v3__0.html#ga3c55063adfc9bfeaf38a1712ab7345e6">XTTCPS_INTERVAL_VAL_OFFSET</a>, (Value))</td></tr>
<tr class="separator:ga5fae7226b73f9d3c0b2acd3dd0d70561"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga89d0a266832132783ec15391726dbae3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga89d0a266832132783ec15391726dbae3">XTtcPs_GetInterval</a>(InstancePtr)&#160;&#160;&#160;(u16)InstReadReg((InstancePtr), <a class="el" href="group__ttcps__v3__0.html#ga3c55063adfc9bfeaf38a1712ab7345e6">XTTCPS_INTERVAL_VAL_OFFSET</a>)</td></tr>
<tr class="separator:ga89d0a266832132783ec15391726dbae3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1075ec0ff78366348f936e1e9bd96ac"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#gad1075ec0ff78366348f936e1e9bd96ac">XTtcPs_ResetCounterValue</a>(InstancePtr)</td></tr>
<tr class="separator:gad1075ec0ff78366348f936e1e9bd96ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ba80f16b192bf1a02262154ea52001f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga9ba80f16b192bf1a02262154ea52001f">XTtcPs_EnableInterrupts</a>(InstancePtr,  InterruptMask)</td></tr>
<tr class="separator:ga9ba80f16b192bf1a02262154ea52001f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga689593bb0ab2f6d8abe85efcf72fe209"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga689593bb0ab2f6d8abe85efcf72fe209">XTtcPs_DisableInterrupts</a>(InstancePtr,  InterruptMask)</td></tr>
<tr class="separator:ga689593bb0ab2f6d8abe85efcf72fe209"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1f24b5dfa3b9147e374aefa0003d924c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga1f24b5dfa3b9147e374aefa0003d924c">XTtcPs_GetInterruptStatus</a>(InstancePtr)&#160;&#160;&#160;InstReadReg((InstancePtr), <a class="el" href="group__ttcps__v3__0.html#gadeae55c98cafd198b2afa7d0175f1d15">XTTCPS_ISR_OFFSET</a>)</td></tr>
<tr class="separator:ga1f24b5dfa3b9147e374aefa0003d924c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3ab6486250e4adc6343fa3e086540d3e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga3ab6486250e4adc6343fa3e086540d3e">XTtcPs_ClearInterruptStatus</a>(InstancePtr,  InterruptMask)</td></tr>
<tr class="separator:ga3ab6486250e4adc6343fa3e086540d3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga43586f12a9aab60acf515b80f25bc0a6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga43586f12a9aab60acf515b80f25bc0a6">XTtcPs_ReadReg</a>(BaseAddress,  RegOffset)&#160;&#160;&#160;(Xil_In32((BaseAddress) + (u32)(RegOffset)))</td></tr>
<tr class="separator:ga43586f12a9aab60acf515b80f25bc0a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae272f5debb32f8d43e5df1e85df75922"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#gae272f5debb32f8d43e5df1e85df75922">XTtcPs_WriteReg</a>(BaseAddress,  RegOffset,  Data)&#160;&#160;&#160;(Xil_Out32((BaseAddress) + (u32)(RegOffset), (u32)(Data)))</td></tr>
<tr class="separator:gae272f5debb32f8d43e5df1e85df75922"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga85163a69a7f9df09f56528bee3a7a861"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga85163a69a7f9df09f56528bee3a7a861">XTtcPs_Match_N_Offset</a>(MatchIndex)&#160;&#160;&#160;((u32)<a class="el" href="group__ttcps__v3__0.html#ga2f72db91933c04a01af506b070b51847">XTTCPS_MATCH_0_OFFSET</a> + ((u32)(12U) * (u32)(MatchIndex)))</td></tr>
<tr class="separator:ga85163a69a7f9df09f56528bee3a7a861"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gae49e15051a6bc16bc2a5369832f1a584"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr, <a class="el" href="struct_x_ttc_ps___config.html">XTtcPs_Config</a> *ConfigPtr, u32 EffectiveAddr)</td></tr>
<tr class="separator:gae49e15051a6bc16bc2a5369832f1a584"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2b45b9a6c4ce17cf5b50953528de9c65"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga2b45b9a6c4ce17cf5b50953528de9c65">XTtcPs_SetMatchValue</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr, u8 MatchIndex, u16 Value)</td></tr>
<tr class="separator:ga2b45b9a6c4ce17cf5b50953528de9c65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3a1b17e7784d4251cbeeb6339ffe8a83"><td class="memItemLeft" align="right" valign="top">u16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga3a1b17e7784d4251cbeeb6339ffe8a83">XTtcPs_GetMatchValue</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr, u8 MatchIndex)</td></tr>
<tr class="separator:ga3a1b17e7784d4251cbeeb6339ffe8a83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac08478cc050c41cc435a3f2b49b4c874"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#gac08478cc050c41cc435a3f2b49b4c874">XTtcPs_SetPrescaler</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr, u8 PrescalerValue)</td></tr>
<tr class="separator:gac08478cc050c41cc435a3f2b49b4c874"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d528bcd850e49f08fc585cb867ca11c"><td class="memItemLeft" align="right" valign="top">u8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga9d528bcd850e49f08fc585cb867ca11c">XTtcPs_GetPrescaler</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr)</td></tr>
<tr class="separator:ga9d528bcd850e49f08fc585cb867ca11c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad4935dccddaa77ae31faf4ec34d0859f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#gad4935dccddaa77ae31faf4ec34d0859f">XTtcPs_CalcIntervalFromFreq</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr, u32 Freq, u16 *Interval, u8 *Prescaler)</td></tr>
<tr class="separator:gad4935dccddaa77ae31faf4ec34d0859f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga88827c48fd065f14c8c0a1383c5da74e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_ttc_ps___config.html">XTtcPs_Config</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga88827c48fd065f14c8c0a1383c5da74e">XTtcPs_LookupConfig</a> (u16 DeviceId)</td></tr>
<tr class="separator:ga88827c48fd065f14c8c0a1383c5da74e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7053f4ac8c20f1d1fd335a755960aea9"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga7053f4ac8c20f1d1fd335a755960aea9">XTtcPs_SetOptions</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr, u32 Options)</td></tr>
<tr class="separator:ga7053f4ac8c20f1d1fd335a755960aea9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac33ce44553e83555369c400b964234e7"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#gac33ce44553e83555369c400b964234e7">XTtcPs_GetOptions</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr)</td></tr>
<tr class="separator:gac33ce44553e83555369c400b964234e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga38ff3b491801add8d2b5faa22e2e0a08"><td class="memItemLeft" align="right" valign="top">s32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttcps__v3__0.html#ga38ff3b491801add8d2b5faa22e2e0a08">XTtcPs_SelfTest</a> (<a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *InstancePtr)</td></tr>
<tr class="separator:ga38ff3b491801add8d2b5faa22e2e0a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ga3ab6486250e4adc6343fa3e086540d3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_ClearInterruptStatus</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InterruptMask&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">InstWriteReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#gadeae55c98cafd198b2afa7d0175f1d15">XTTCPS_ISR_OFFSET</a>, \</div>
<div class="line">                 (InterruptMask))</div>
<div class="ttc" id="group__ttcps__v3__0_html_gadeae55c98cafd198b2afa7d0175f1d15"><div class="ttname"><a href="group__ttcps__v3__0.html#gadeae55c98cafd198b2afa7d0175f1d15">XTTCPS_ISR_OFFSET</a></div><div class="ttdeci">#define XTTCPS_ISR_OFFSET</div><div class="ttdoc">Interrupt Status Register. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:83</div></div>
</div><!-- fragment -->
<p>This function clears the interrupt status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">InterruptMask</td><td>defines which interrupt should be cleared. Constants are defined in <a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a> as XTTCPS_IXR_*. This is a bit mask, all set bits will be cleared, cleared bits will not be cleared.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: void <a class="el" href="group__ttcps__v3__0.html#ga3ab6486250e4adc6343fa3e086540d3e" title="This function clears the interrupt status. ">XTtcPs_ClearInterruptStatus(XTtcPs *InstancePtr, u32 InterruptMask)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga29a848536966e6edb1a59971931eb6ef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CLK_CNTRL_EXT_EDGE_MASK&#160;&#160;&#160;0x00000040U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>External Clock edge. </p>

</div>
</div>
<a class="anchor" id="ga3dcabe06c5c961d7613cd0d42a6b6e8e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CLK_CNTRL_OFFSET&#160;&#160;&#160;0x00000000U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Clock Control Register. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>, <a class="el" href="group__ttcps__v3__0.html#ga9d528bcd850e49f08fc585cb867ca11c">XTtcPs_GetPrescaler()</a>, <a class="el" href="group__ttcps__v3__0.html#ga7053f4ac8c20f1d1fd335a755960aea9">XTtcPs_SetOptions()</a>, and <a class="el" href="group__ttcps__v3__0.html#gac08478cc050c41cc435a3f2b49b4c874">XTtcPs_SetPrescaler()</a>.</p>

</div>
</div>
<a class="anchor" id="gadc32c3958d06e5b137993806c2637244"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CLK_CNTRL_PS_DISABLE&#160;&#160;&#160;16U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Prescale disable. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gad4935dccddaa77ae31faf4ec34d0859f">XTtcPs_CalcIntervalFromFreq()</a>, <a class="el" href="group__ttcps__v3__0.html#ga9d528bcd850e49f08fc585cb867ca11c">XTtcPs_GetPrescaler()</a>, and <a class="el" href="group__ttcps__v3__0.html#gac08478cc050c41cc435a3f2b49b4c874">XTtcPs_SetPrescaler()</a>.</p>

</div>
</div>
<a class="anchor" id="gaf88edd6685cf410553a53f457aada794"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CLK_CNTRL_PS_EN_MASK&#160;&#160;&#160;0x00000001U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Prescale enable. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#ga9d528bcd850e49f08fc585cb867ca11c">XTtcPs_GetPrescaler()</a>, and <a class="el" href="group__ttcps__v3__0.html#gac08478cc050c41cc435a3f2b49b4c874">XTtcPs_SetPrescaler()</a>.</p>

</div>
</div>
<a class="anchor" id="ga96a6a02566f44a4a2cfc7df72df0b7f5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CLK_CNTRL_PS_VAL_MASK&#160;&#160;&#160;0x0000001EU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Prescale value. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#ga9d528bcd850e49f08fc585cb867ca11c">XTtcPs_GetPrescaler()</a>, and <a class="el" href="group__ttcps__v3__0.html#gac08478cc050c41cc435a3f2b49b4c874">XTtcPs_SetPrescaler()</a>.</p>

</div>
</div>
<a class="anchor" id="ga07e8e493ecd0674215853210e2371a96"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CLK_CNTRL_PS_VAL_SHIFT&#160;&#160;&#160;1U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Prescale shift. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#ga9d528bcd850e49f08fc585cb867ca11c">XTtcPs_GetPrescaler()</a>, and <a class="el" href="group__ttcps__v3__0.html#gac08478cc050c41cc435a3f2b49b4c874">XTtcPs_SetPrescaler()</a>.</p>

</div>
</div>
<a class="anchor" id="ga0ad0d2fc32052665beb38425b8355808"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CLK_CNTRL_SRC_MASK&#160;&#160;&#160;0x00000020U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Clock source. </p>

</div>
</div>
<a class="anchor" id="ga74e687181d1a3883c83b29bfaf501418"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_DECR_MASK&#160;&#160;&#160;0x00000004U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Decrement mode. </p>

</div>
</div>
<a class="anchor" id="gaa6a24e2b904e40bf5e4f6cf184f94b1a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_DIS_MASK&#160;&#160;&#160;0x00000001U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Disable the counter. </p>

</div>
</div>
<a class="anchor" id="gaf70f141431c9cc3c460f4eca42e8aefb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_EN_WAVE_MASK&#160;&#160;&#160;0x00000020U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Enable waveform. </p>

</div>
</div>
<a class="anchor" id="ga47b98db0d18d856c81c04b0e5e49a875"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_INT_MASK&#160;&#160;&#160;0x00000002U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Interval mode. </p>

</div>
</div>
<a class="anchor" id="ga0fcc8d087e0c9f3241abc1af5fac18c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_MATCH_MASK&#160;&#160;&#160;0x00000008U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Match mode. </p>

</div>
</div>
<a class="anchor" id="ga5ffa2c9626e069f82893b9411e022744"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_OFFSET&#160;&#160;&#160;0x0000000CU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Counter Control Register. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>, <a class="el" href="group__ttcps__v3__0.html#ga38ff3b491801add8d2b5faa22e2e0a08">XTtcPs_SelfTest()</a>, and <a class="el" href="group__ttcps__v3__0.html#ga7053f4ac8c20f1d1fd335a755960aea9">XTtcPs_SetOptions()</a>.</p>

</div>
</div>
<a class="anchor" id="ga28cbcfa250bc16b43297a408903156c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_POL_WAVE_MASK&#160;&#160;&#160;0x00000040U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Waveform polarity. </p>

</div>
</div>
<a class="anchor" id="gace44171924227dbc5056fbdef14e7ab0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_RESET_VALUE&#160;&#160;&#160;0x00000021U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Reset value. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>, and <a class="el" href="group__ttcps__v3__0.html#ga38ff3b491801add8d2b5faa22e2e0a08">XTtcPs_SelfTest()</a>.</p>

</div>
</div>
<a class="anchor" id="ga8a626958a0fe9e03e87b11dcc6fbd270"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_CNT_CNTRL_RST_MASK&#160;&#160;&#160;0x00000010U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Reset counter. </p>

</div>
</div>
<a class="anchor" id="gaa0257d9068c3a973050dbc4bc74d13bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_COUNT_VALUE_MASK&#160;&#160;&#160;0x0000FFFFU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>16-bit counter value </p>

</div>
</div>
<a class="anchor" id="ga5d75d0aff87c36aee0b898282dae8c24"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_COUNT_VALUE_OFFSET&#160;&#160;&#160;0x00000018U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Current Counter Value. </p>

</div>
</div>
<a class="anchor" id="ga689593bb0ab2f6d8abe85efcf72fe209"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_DisableInterrupts</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InterruptMask&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">InstWriteReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga9f30e22f168427395bfe9e6cfeacdce4">XTTCPS_IER_OFFSET</a>,  \</div>
<div class="line">                (InstReadReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga9f30e22f168427395bfe9e6cfeacdce4">XTTCPS_IER_OFFSET</a>) &amp;        \</div>
<div class="line">                 ~(InterruptMask)))</div>
<div class="ttc" id="group__ttcps__v3__0_html_ga9f30e22f168427395bfe9e6cfeacdce4"><div class="ttname"><a href="group__ttcps__v3__0.html#ga9f30e22f168427395bfe9e6cfeacdce4">XTTCPS_IER_OFFSET</a></div><div class="ttdeci">#define XTTCPS_IER_OFFSET</div><div class="ttdoc">Interrupt Enable Register. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:84</div></div>
</div><!-- fragment -->
<p>This function disables the interrupts. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">InterruptMask</td><td>defines which interrupt should be disabled. Constants are defined in <a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a> as XTTCPS_IXR_*. This is a bit mask, all set bits will be disabled, cleared bits will not be disabled.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: void <a class="el" href="group__ttcps__v3__0.html#ga689593bb0ab2f6d8abe85efcf72fe209" title="This function disables the interrupts. ">XTtcPs_DisableInterrupts(XTtcPs *InstancePtr, u32 InterruptMask)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga9ba80f16b192bf1a02262154ea52001f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_EnableInterrupts</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InterruptMask&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">InstWriteReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga9f30e22f168427395bfe9e6cfeacdce4">XTTCPS_IER_OFFSET</a>,          \</div>
<div class="line">                (InstReadReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga9f30e22f168427395bfe9e6cfeacdce4">XTTCPS_IER_OFFSET</a>) |        \</div>
<div class="line">                 (InterruptMask)))</div>
<div class="ttc" id="group__ttcps__v3__0_html_ga9f30e22f168427395bfe9e6cfeacdce4"><div class="ttname"><a href="group__ttcps__v3__0.html#ga9f30e22f168427395bfe9e6cfeacdce4">XTTCPS_IER_OFFSET</a></div><div class="ttdeci">#define XTTCPS_IER_OFFSET</div><div class="ttdoc">Interrupt Enable Register. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:84</div></div>
</div><!-- fragment -->
<p>This function enables the interrupts. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">InterruptMask</td><td>defines which interrupt should be enabled. Constants are defined in <a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a> as XTTCPS_IXR_*. This is a bit mask, all set bits will be enabled, cleared bits will not be disabled.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: void <a class="el" href="group__ttcps__v3__0.html#ga9ba80f16b192bf1a02262154ea52001f" title="This function enables the interrupts. ">XTtcPs_EnableInterrupts(XTtcPs *InstancePtr, u32 InterruptMask)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga2e333879788d146e762e8a114159e9e5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_GetCounterValue</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td>&#160;&#160;&#160;(u16)InstReadReg((InstancePtr), <a class="el" href="group__ttcps__v3__0.html#ga5d75d0aff87c36aee0b898282dae8c24">XTTCPS_COUNT_VALUE_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>This function returns the current 16-bit counter value. </p>
<p>It may be called at any time.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>16-bit counter value.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: u16 <a class="el" href="group__ttcps__v3__0.html#ga2e333879788d146e762e8a114159e9e5" title="This function returns the current 16-bit counter value. ">XTtcPs_GetCounterValue(XTtcPs *InstancePtr)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga1f24b5dfa3b9147e374aefa0003d924c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_GetInterruptStatus</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td>&#160;&#160;&#160;InstReadReg((InstancePtr), <a class="el" href="group__ttcps__v3__0.html#gadeae55c98cafd198b2afa7d0175f1d15">XTTCPS_ISR_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>This function reads the interrupt status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: u32 <a class="el" href="group__ttcps__v3__0.html#ga1f24b5dfa3b9147e374aefa0003d924c" title="This function reads the interrupt status. ">XTtcPs_GetInterruptStatus(XTtcPs *InstancePtr)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga89d0a266832132783ec15391726dbae3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_GetInterval</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td>&#160;&#160;&#160;(u16)InstReadReg((InstancePtr), <a class="el" href="group__ttcps__v3__0.html#ga3c55063adfc9bfeaf38a1712ab7345e6">XTTCPS_INTERVAL_VAL_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>This function gets the interval value from the interval register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>16-bit interval value</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: u16 <a class="el" href="group__ttcps__v3__0.html#ga89d0a266832132783ec15391726dbae3" title="This function gets the interval value from the interval register. ">XTtcPs_GetInterval(XTtcPs *InstancePtr)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga9f30e22f168427395bfe9e6cfeacdce4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_IER_OFFSET&#160;&#160;&#160;0x00000060U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Interrupt Enable Register. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="gadf5cbda1580ca50f6cbf1d5935c9462e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_INTERVAL_VAL_MASK&#160;&#160;&#160;0x0000FFFFU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>16-bit Interval value </p>

</div>
</div>
<a class="anchor" id="ga3c55063adfc9bfeaf38a1712ab7345e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_INTERVAL_VAL_OFFSET&#160;&#160;&#160;0x00000024U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Interval Count Value. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="gadeae55c98cafd198b2afa7d0175f1d15"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_ISR_OFFSET&#160;&#160;&#160;0x00000054U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Interrupt Status Register. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="ga90395ec5242c1fce193ad5697ee976c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_IsStarted</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">((InstReadReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>) &amp; \</div>
<div class="line">       XTTCPS_CNT_CNTRL_DIS_MASK) == 0U)</div>
<div class="ttc" id="group__ttcps__v3__0_html_ga5ffa2c9626e069f82893b9411e022744"><div class="ttname"><a href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a></div><div class="ttdeci">#define XTTCPS_CNT_CNTRL_OFFSET</div><div class="ttdoc">Counter Control Register. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:77</div></div>
</div><!-- fragment -->
<p>This function checks whether the timer counter has already started. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Non-zero if the device has started, '0' otherwise.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: int <a class="el" href="group__ttcps__v3__0.html#ga90395ec5242c1fce193ad5697ee976c3" title="This function checks whether the timer counter has already started. ">XTtcPs_IsStarted(XTtcPs *InstancePtr)</a> </dd></dl>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="ga5958a45b189301b731803a4368b2d799"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_IXR_ALL_MASK&#160;&#160;&#160;0x0000001FU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>All valid Interrupts. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="ga747415f67bf02a86b7c36d72a4ec3f2b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_IXR_CNT_OVR_MASK&#160;&#160;&#160;0x00000010U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Counter Overflow. </p>

</div>
</div>
<a class="anchor" id="gad6a7f6c0d9e3102383bb507f039fc155"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_IXR_INTERVAL_MASK&#160;&#160;&#160;0x00000001U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Interval Interrupt. </p>

</div>
</div>
<a class="anchor" id="ga4eca7b067508c34c19d50d6ad3b49aae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_IXR_MATCH_0_MASK&#160;&#160;&#160;0x00000002U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Match 1 Interrupt. </p>

</div>
</div>
<a class="anchor" id="gaf4e6314712e430e9c137ec68025a57d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_IXR_MATCH_1_MASK&#160;&#160;&#160;0x00000004U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Match 2 Interrupt. </p>

</div>
</div>
<a class="anchor" id="gab61357b4c938288f51da57d228ecbece"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_IXR_MATCH_2_MASK&#160;&#160;&#160;0x00000008U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Match 3 Interrupt. </p>

</div>
</div>
<a class="anchor" id="ga2f72db91933c04a01af506b070b51847"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_MATCH_0_OFFSET&#160;&#160;&#160;0x00000030U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Match 1 value. </p>

</div>
</div>
<a class="anchor" id="gab73fbdbe507a47e44388793fc3411a31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_MATCH_1_OFFSET&#160;&#160;&#160;0x0000003CU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Match 2 value. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="ga9a2228115d5fb78821c859ed72014224"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_MATCH_2_OFFSET&#160;&#160;&#160;0x00000048U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Match 3 value. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="ga20dd2f46682a5bb9c981ed460ab223e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_MATCH_MASK&#160;&#160;&#160;0x0000FFFFU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>16-bit Match value </p>

</div>
</div>
<a class="anchor" id="ga85163a69a7f9df09f56528bee3a7a861"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_Match_N_Offset</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">MatchIndex</td><td>)</td>
          <td>&#160;&#160;&#160;((u32)<a class="el" href="group__ttcps__v3__0.html#ga2f72db91933c04a01af506b070b51847">XTTCPS_MATCH_0_OFFSET</a> + ((u32)(12U) * (u32)(MatchIndex)))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Calculate a match register offset using the Match Register index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">MatchIndex</td><td>is the 0-2 value of the match register</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>MATCH_N_OFFSET.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: u32 <a class="el" href="group__ttcps__v3__0.html#ga85163a69a7f9df09f56528bee3a7a861" title="Calculate a match register offset using the Match Register index. ">XTtcPs_Match_N_Offset(u8 MatchIndex)</a> </dd></dl>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#ga3a1b17e7784d4251cbeeb6339ffe8a83">XTtcPs_GetMatchValue()</a>, and <a class="el" href="group__ttcps__v3__0.html#ga2b45b9a6c4ce17cf5b50953528de9c65">XTtcPs_SetMatchValue()</a>.</p>

</div>
</div>
<a class="anchor" id="ga3bdd5da79d4f22d353877b2bd26cd812"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_NUM_MATCH_REG&#160;&#160;&#160;3U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Num of Match reg. </p>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#ga3a1b17e7784d4251cbeeb6339ffe8a83">XTtcPs_GetMatchValue()</a>, and <a class="el" href="group__ttcps__v3__0.html#ga2b45b9a6c4ce17cf5b50953528de9c65">XTtcPs_SetMatchValue()</a>.</p>

</div>
</div>
<a class="anchor" id="ga7364b78f01ad1b27a076ef9ce568f497"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_OPTION_CLK_EDGE_NEG&#160;&#160;&#160;0x00000002U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>Clock on trailing edge for external clock. </p>

</div>
</div>
<a class="anchor" id="gaeeae7b90036e1a13b52e7b2875942efd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_OPTION_DECREMENT&#160;&#160;&#160;0x00000008U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>Decrement the counter. </p>

</div>
</div>
<a class="anchor" id="ga3583fa93646d878d3c43186df93e1ada"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_OPTION_EXTERNAL_CLK&#160;&#160;&#160;0x00000001U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>External clock source. </p>

</div>
</div>
<a class="anchor" id="gabe4c649641c3efc6f2fe07e6810d2048"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_OPTION_INTERVAL_MODE&#160;&#160;&#160;0x00000004U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>Interval mode. </p>

</div>
</div>
<a class="anchor" id="gaa66b7479dcccbd1a6117d47831d882d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_OPTION_MATCH_MODE&#160;&#160;&#160;0x00000010U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>Match mode. </p>

</div>
</div>
<a class="anchor" id="ga93f486a44e4fcd438306b1db3f301a95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_OPTION_WAVE_DISABLE&#160;&#160;&#160;0x00000020U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>No waveform output. </p>

</div>
</div>
<a class="anchor" id="gaf39b9b3bfc4ceef12bb0cea724cf2359"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTTCPS_OPTION_WAVE_POLARITY&#160;&#160;&#160;0x00000040U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>Waveform polarity. </p>

</div>
</div>
<a class="anchor" id="ga43586f12a9aab60acf515b80f25bc0a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_ReadReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">RegOffset&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(Xil_In32((BaseAddress) + (u32)(RegOffset)))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Read the given Timer Counter register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the timer counter device. </td></tr>
    <tr><td class="paramname">RegOffset</td><td>is the register offset to be read</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The 32-bit value of the register</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: u32 <a class="el" href="group__ttcps__v3__0.html#ga43586f12a9aab60acf515b80f25bc0a6" title="Read the given Timer Counter register. ">XTtcPs_ReadReg(u32 BaseAddress, u32 RegOffset)</a> </dd></dl>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#ga3a1b17e7784d4251cbeeb6339ffe8a83">XTtcPs_GetMatchValue()</a>, <a class="el" href="group__ttcps__v3__0.html#gac33ce44553e83555369c400b964234e7">XTtcPs_GetOptions()</a>, <a class="el" href="group__ttcps__v3__0.html#ga9d528bcd850e49f08fc585cb867ca11c">XTtcPs_GetPrescaler()</a>, <a class="el" href="group__ttcps__v3__0.html#ga38ff3b491801add8d2b5faa22e2e0a08">XTtcPs_SelfTest()</a>, <a class="el" href="group__ttcps__v3__0.html#ga7053f4ac8c20f1d1fd335a755960aea9">XTtcPs_SetOptions()</a>, and <a class="el" href="group__ttcps__v3__0.html#gac08478cc050c41cc435a3f2b49b4c874">XTtcPs_SetPrescaler()</a>.</p>

</div>
</div>
<a class="anchor" id="gad1075ec0ff78366348f936e1e9bd96ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_ResetCounterValue</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">InstWriteReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>,    \</div>
<div class="line">                (InstReadReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>) | \</div>
<div class="line">                 (u32)<a class="code" href="group__ttcps__v3__0.html#ga8a626958a0fe9e03e87b11dcc6fbd270">XTTCPS_CNT_CNTRL_RST_MASK</a>))</div>
<div class="ttc" id="group__ttcps__v3__0_html_ga5ffa2c9626e069f82893b9411e022744"><div class="ttname"><a href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a></div><div class="ttdeci">#define XTTCPS_CNT_CNTRL_OFFSET</div><div class="ttdoc">Counter Control Register. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:77</div></div>
<div class="ttc" id="group__ttcps__v3__0_html_ga8a626958a0fe9e03e87b11dcc6fbd270"><div class="ttname"><a href="group__ttcps__v3__0.html#ga8a626958a0fe9e03e87b11dcc6fbd270">XTTCPS_CNT_CNTRL_RST_MASK</a></div><div class="ttdeci">#define XTTCPS_CNT_CNTRL_RST_MASK</div><div class="ttdoc">Reset counter. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:107</div></div>
</div><!-- fragment -->
<p>This macro resets the count register. </p>
<p>It may be called at any time. The counter is reset to either 0 or 0xFFFF, or the interval value, depending on the increment/decrement mode. The state of the counter, as started or stopped, is not affected by calling reset.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: void <a class="el" href="group__ttcps__v3__0.html#gad1075ec0ff78366348f936e1e9bd96ac" title="This macro resets the count register. ">XTtcPs_ResetCounterValue(XTtcPs *InstancePtr)</a> </dd></dl>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="ga5fae7226b73f9d3c0b2acd3dd0d70561"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_SetInterval</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Value&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;InstWriteReg((InstancePtr), <a class="el" href="group__ttcps__v3__0.html#ga3c55063adfc9bfeaf38a1712ab7345e6">XTTCPS_INTERVAL_VAL_OFFSET</a>, (Value))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>This function sets the interval value to be used in interval mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">Value</td><td>is the 16-bit value to be set in the interval register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: void <a class="el" href="group__ttcps__v3__0.html#ga5fae7226b73f9d3c0b2acd3dd0d70561" title="This function sets the interval value to be used in interval mode. ">XTtcPs_SetInterval(XTtcPs *InstancePtr, u16 Value)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gada91222b52c938cb8639d333ed334273"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_Start</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">InstWriteReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>,    \</div>
<div class="line">                (InstReadReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>) &amp;  \</div>
<div class="line">                 ~<a class="code" href="group__ttcps__v3__0.html#gaa6a24e2b904e40bf5e4f6cf184f94b1a">XTTCPS_CNT_CNTRL_DIS_MASK</a>))</div>
<div class="ttc" id="group__ttcps__v3__0_html_gaa6a24e2b904e40bf5e4f6cf184f94b1a"><div class="ttname"><a href="group__ttcps__v3__0.html#gaa6a24e2b904e40bf5e4f6cf184f94b1a">XTTCPS_CNT_CNTRL_DIS_MASK</a></div><div class="ttdeci">#define XTTCPS_CNT_CNTRL_DIS_MASK</div><div class="ttdoc">Disable the counter. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:103</div></div>
<div class="ttc" id="group__ttcps__v3__0_html_ga5ffa2c9626e069f82893b9411e022744"><div class="ttname"><a href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a></div><div class="ttdeci">#define XTTCPS_CNT_CNTRL_OFFSET</div><div class="ttdoc">Counter Control Register. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:77</div></div>
</div><!-- fragment -->
<p>This function starts the counter/timer without resetting the counter value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: void <a class="el" href="group__ttcps__v3__0.html#gada91222b52c938cb8639d333ed334273" title="This function starts the counter/timer without resetting the counter value. ">XTtcPs_Start(XTtcPs *InstancePtr)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga8cc3413150e3c510e47cdb706fc3583e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_Stop</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">InstancePtr</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">InstWriteReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>,    \</div>
<div class="line">                (InstReadReg((InstancePtr), <a class="code" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>) |  \</div>
<div class="line">                 <a class="code" href="group__ttcps__v3__0.html#gaa6a24e2b904e40bf5e4f6cf184f94b1a">XTTCPS_CNT_CNTRL_DIS_MASK</a>))</div>
<div class="ttc" id="group__ttcps__v3__0_html_gaa6a24e2b904e40bf5e4f6cf184f94b1a"><div class="ttname"><a href="group__ttcps__v3__0.html#gaa6a24e2b904e40bf5e4f6cf184f94b1a">XTTCPS_CNT_CNTRL_DIS_MASK</a></div><div class="ttdeci">#define XTTCPS_CNT_CNTRL_DIS_MASK</div><div class="ttdoc">Disable the counter. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:103</div></div>
<div class="ttc" id="group__ttcps__v3__0_html_ga5ffa2c9626e069f82893b9411e022744"><div class="ttname"><a href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a></div><div class="ttdeci">#define XTTCPS_CNT_CNTRL_OFFSET</div><div class="ttdoc">Counter Control Register. </div><div class="ttdef"><b>Definition:</b> xttcps_hw.h:77</div></div>
</div><!-- fragment -->
<p>This function stops the counter/timer. </p>
<p>This macro may be called at any time to stop the counter. The counter holds the last value until it is reset, restarted or enabled.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: void <a class="el" href="group__ttcps__v3__0.html#ga8cc3413150e3c510e47cdb706fc3583e" title="This function stops the counter/timer. ">XTtcPs_Stop(XTtcPs *InstancePtr)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gae272f5debb32f8d43e5df1e85df75922"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTtcPs_WriteReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">RegOffset, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Data&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(Xil_Out32((BaseAddress) + (u32)(RegOffset), (u32)(Data)))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__hw_8h.html">xttcps_hw.h</a>&gt;</code></p>

<p>Write the given Timer Counter register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the timer counter device. </td></tr>
    <tr><td class="paramname">RegOffset</td><td>is the register offset to be written </td></tr>
    <tr><td class="paramname">Data</td><td>is the 32-bit value to write to the register</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-style signature: void XTtcPs_WriteReg(<a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> BaseAddress, u32 RegOffset, u32 Data) </dd></dl>

<p>Referenced by <a class="el" href="group__ttcps__v3__0.html#gae49e15051a6bc16bc2a5369832f1a584">XTtcPs_CfgInitialize()</a>, <a class="el" href="group__ttcps__v3__0.html#ga2b45b9a6c4ce17cf5b50953528de9c65">XTtcPs_SetMatchValue()</a>, <a class="el" href="group__ttcps__v3__0.html#ga7053f4ac8c20f1d1fd335a755960aea9">XTtcPs_SetOptions()</a>, and <a class="el" href="group__ttcps__v3__0.html#gac08478cc050c41cc435a3f2b49b4c874">XTtcPs_SetPrescaler()</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gad4935dccddaa77ae31faf4ec34d0859f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTtcPs_CalcIntervalFromFreq </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Freq</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16 *&#160;</td>
          <td class="paramname"><em>Interval</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8 *&#160;</td>
          <td class="paramname"><em>Prescaler</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8c.html">xttcps.c</a>&gt;</code></p>

<p>This function calculates the interval value as well as the prescaler value for a given frequency. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">Freq</td><td>is the requested output frequency for the device. </td></tr>
    <tr><td class="paramname">Interval</td><td>is the interval value for the given frequency, it is the output value for this function. </td></tr>
    <tr><td class="paramname">Prescaler</td><td>is the prescaler value for the given frequency, it is the output value for this function.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Upon successful calculation for the given frequency, Interval and Prescaler carry the settings for the timer counter; Upon unsuccessful calculation, Interval and Prescaler are set to 0xFF(FF) for their maximum values to signal the caller of failure. Therefore, caller needs to check the return interval or prescaler values for whether the function has succeeded. </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps___config.html#aebf20560d3d23cb9b2ebcceb105916ee">XTtcPs_Config::InputClockHz</a>, and <a class="el" href="group__ttcps__v3__0.html#gadc32c3958d06e5b137993806c2637244">XTTCPS_CLK_CNTRL_PS_DISABLE</a>.</p>

</div>
</div>
<a class="anchor" id="gae49e15051a6bc16bc2a5369832f1a584"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XTtcPs_CfgInitialize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps___config.html">XTtcPs_Config</a> *&#160;</td>
          <td class="paramname"><em>ConfigPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>EffectiveAddr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8c.html">xttcps.c</a>&gt;</code></p>

<p>Initializes a specific <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance such that the driver is ready to use. </p>
<p>This function initializes a single timer counter in the triple timer counter function block.</p>
<p>The state of the device after initialization is:</p><ul>
<li>Overflow Mode</li>
<li>Internal (pclk) selected</li>
<li>Counter disabled</li>
<li>All Interrupts disabled</li>
<li>Output waveforms disabled</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">ConfigPtr</td><td>is a reference to a structure containing information about a specific TTC device. </td></tr>
    <tr><td class="paramname">EffectiveAddr</td><td>is the device base address in the virtual memory address space. The caller is responsible for keeping the address mapping from EffectiveAddr to the device physical base address unchanged once this function is invoked. Unexpected errors may occur if the address mapping changes after this function is called. If address translation is not used, then use ConfigPtr-&gt;BaseAddress for this parameter, passing the physical address instead.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
<ul>
<li>XST_SUCCESS if the initialization is successful.</li>
</ul>
<p>XST_DEVICE_IS_STARTED if the device is started. It must be stopped to re-initialize.</p>
<dl class="section note"><dt>Note</dt><dd>Device has to be stopped first to call this function to initialize it. </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps___config.html#ae6953c208634412c4282d3f4841287ef">XTtcPs_Config::BaseAddress</a>, <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps___config.html#a12e2bf00eba6670978873441e4a05b1c">XTtcPs_Config::DeviceId</a>, <a class="el" href="struct_x_ttc_ps___config.html#aebf20560d3d23cb9b2ebcceb105916ee">XTtcPs_Config::InputClockHz</a>, <a class="el" href="struct_x_ttc_ps.html#aac0267992556670f31d2fa1cb7d1a889">XTtcPs::IsReady</a>, <a class="el" href="group__ttcps__v3__0.html#ga3dcabe06c5c961d7613cd0d42a6b6e8e">XTTCPS_CLK_CNTRL_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#gace44171924227dbc5056fbdef14e7ab0">XTTCPS_CNT_CNTRL_RESET_VALUE</a>, <a class="el" href="group__ttcps__v3__0.html#ga9f30e22f168427395bfe9e6cfeacdce4">XTTCPS_IER_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#ga3c55063adfc9bfeaf38a1712ab7345e6">XTTCPS_INTERVAL_VAL_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#gadeae55c98cafd198b2afa7d0175f1d15">XTTCPS_ISR_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#ga90395ec5242c1fce193ad5697ee976c3">XTtcPs_IsStarted</a>, <a class="el" href="group__ttcps__v3__0.html#ga5958a45b189301b731803a4368b2d799">XTTCPS_IXR_ALL_MASK</a>, <a class="el" href="group__ttcps__v3__0.html#gab73fbdbe507a47e44388793fc3411a31">XTTCPS_MATCH_1_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#ga9a2228115d5fb78821c859ed72014224">XTTCPS_MATCH_2_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#gad1075ec0ff78366348f936e1e9bd96ac">XTtcPs_ResetCounterValue</a>, and <a class="el" href="group__ttcps__v3__0.html#gae272f5debb32f8d43e5df1e85df75922">XTtcPs_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga3a1b17e7784d4251cbeeb6339ffe8a83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u16 XTtcPs_GetMatchValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>MatchIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8c.html">xttcps.c</a>&gt;</code></p>

<p>This function is used to get the value of the match registers. </p>
<p>There are three match registers.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">MatchIndex</td><td>is the index to the match register to be set. Valid values are 0, 1, or 2.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps___config.html#ae6953c208634412c4282d3f4841287ef">XTtcPs_Config::BaseAddress</a>, <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps.html#aac0267992556670f31d2fa1cb7d1a889">XTtcPs::IsReady</a>, <a class="el" href="group__ttcps__v3__0.html#ga85163a69a7f9df09f56528bee3a7a861">XTtcPs_Match_N_Offset</a>, <a class="el" href="group__ttcps__v3__0.html#ga3bdd5da79d4f22d353877b2bd26cd812">XTTCPS_NUM_MATCH_REG</a>, and <a class="el" href="group__ttcps__v3__0.html#ga43586f12a9aab60acf515b80f25bc0a6">XTtcPs_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="gac33ce44553e83555369c400b964234e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XTtcPs_GetOptions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>This function gets the settings for the options for the TTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
<p>The return u32 contains the specified options that are set. This is a bit mask where a '1' means the option is on, and a'0' means the option is off. One or more bit values may be contained in the mask. See the bit definitions named XTTCPS_*_OPTION in the file <a class="el" href="xttcps_8h.html">xttcps.h</a>.</p>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps___config.html#ae6953c208634412c4282d3f4841287ef">XTtcPs_Config::BaseAddress</a>, <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps.html#aac0267992556670f31d2fa1cb7d1a889">XTtcPs::IsReady</a>, and <a class="el" href="group__ttcps__v3__0.html#ga43586f12a9aab60acf515b80f25bc0a6">XTtcPs_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga9d528bcd850e49f08fc585cb867ca11c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u8 XTtcPs_GetPrescaler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8c.html">xttcps.c</a>&gt;</code></p>

<p>This function gets the input clock prescaler. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<pre>
<dl class="section return"><dt>Returns</dt><dd>	The value(n) from which the prescalar value is calculated
	as 2^(n+1). Some example values are given below :</dd></dl>
<p>        Value		Prescaler
	0		2
	1		4
	N		2^(n+1)
	15		65536
	16		1
</pre><dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps___config.html#ae6953c208634412c4282d3f4841287ef">XTtcPs_Config::BaseAddress</a>, <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps.html#aac0267992556670f31d2fa1cb7d1a889">XTtcPs::IsReady</a>, <a class="el" href="group__ttcps__v3__0.html#ga3dcabe06c5c961d7613cd0d42a6b6e8e">XTTCPS_CLK_CNTRL_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#gadc32c3958d06e5b137993806c2637244">XTTCPS_CLK_CNTRL_PS_DISABLE</a>, <a class="el" href="group__ttcps__v3__0.html#gaf88edd6685cf410553a53f457aada794">XTTCPS_CLK_CNTRL_PS_EN_MASK</a>, <a class="el" href="group__ttcps__v3__0.html#ga96a6a02566f44a4a2cfc7df72df0b7f5">XTTCPS_CLK_CNTRL_PS_VAL_MASK</a>, <a class="el" href="group__ttcps__v3__0.html#ga07e8e493ecd0674215853210e2371a96">XTTCPS_CLK_CNTRL_PS_VAL_SHIFT</a>, and <a class="el" href="group__ttcps__v3__0.html#ga43586f12a9aab60acf515b80f25bc0a6">XTtcPs_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga88827c48fd065f14c8c0a1383c5da74e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_ttc_ps___config.html">XTtcPs_Config</a> * XTtcPs_LookupConfig </td>
          <td>(</td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>DeviceId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>Looks up the device configuration based on the unique device ID. </p>
<p>A table contains the configuration info for each device in the system.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DeviceId</td><td>contains the unique ID of the device</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
<p>A pointer to the configuration found or NULL if the specified device ID was not found. See <a class="el" href="xttcps_8h.html">xttcps.h</a> for the definition of <a class="el" href="struct_x_ttc_ps___config.html" title="This typedef contains configuration information for the device. ">XTtcPs_Config</a>.</p>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

</div>
</div>
<a class="anchor" id="ga38ff3b491801add8d2b5faa22e2e0a08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XTtcPs_SelfTest </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>Runs a self-test on the driver/device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
<ul>
<li>XST_SUCCESS if successful</li>
<li>XST_FAILURE indicates a register did not read or write correctly</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>This test fails if it is not called right after initialization. </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps___config.html#ae6953c208634412c4282d3f4841287ef">XTtcPs_Config::BaseAddress</a>, <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps.html#aac0267992556670f31d2fa1cb7d1a889">XTtcPs::IsReady</a>, <a class="el" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#gace44171924227dbc5056fbdef14e7ab0">XTTCPS_CNT_CNTRL_RESET_VALUE</a>, and <a class="el" href="group__ttcps__v3__0.html#ga43586f12a9aab60acf515b80f25bc0a6">XTtcPs_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga2b45b9a6c4ce17cf5b50953528de9c65"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTtcPs_SetMatchValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>MatchIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>Value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8c.html">xttcps.c</a>&gt;</code></p>

<p>This function is used to set the match registers. </p>
<p>There are three match registers.</p>
<p>The match 0 register is special. If the waveform output mode is enabled, the waveform will change polarity when the count matches the value in the match 0 register. The polarity of the waveform output can also be set using the <a class="el" href="group__ttcps__v3__0.html#ga7053f4ac8c20f1d1fd335a755960aea9" title="This function sets the options for the TTC device. ">XTtcPs_SetOptions()</a> function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">MatchIndex</td><td>is the index to the match register to be set. Valid values are 0, 1, or 2. </td></tr>
    <tr><td class="paramname">Value</td><td>is the 16-bit value to be set in the match register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps___config.html#ae6953c208634412c4282d3f4841287ef">XTtcPs_Config::BaseAddress</a>, <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps.html#aac0267992556670f31d2fa1cb7d1a889">XTtcPs::IsReady</a>, <a class="el" href="group__ttcps__v3__0.html#ga85163a69a7f9df09f56528bee3a7a861">XTtcPs_Match_N_Offset</a>, <a class="el" href="group__ttcps__v3__0.html#ga3bdd5da79d4f22d353877b2bd26cd812">XTTCPS_NUM_MATCH_REG</a>, and <a class="el" href="group__ttcps__v3__0.html#gae272f5debb32f8d43e5df1e85df75922">XTtcPs_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga7053f4ac8c20f1d1fd335a755960aea9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">s32 XTtcPs_SetOptions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8h.html">xttcps.h</a>&gt;</code></p>

<p>This function sets the options for the TTC device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">Options</td><td>contains the specified options to be set. This is a bit mask where a 1 means to turn the option on, and a 0 means to turn the option off. One or more bit values may be contained in the mask. See the bit definitions named XTTCPS_*_OPTION in the file <a class="el" href="xttcps_8h.html">xttcps.h</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if options are successfully set.</li>
<li>XST_FAILURE if any of the options are unknown.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps___config.html#ae6953c208634412c4282d3f4841287ef">XTtcPs_Config::BaseAddress</a>, <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps.html#aac0267992556670f31d2fa1cb7d1a889">XTtcPs::IsReady</a>, <a class="el" href="group__ttcps__v3__0.html#ga3dcabe06c5c961d7613cd0d42a6b6e8e">XTTCPS_CLK_CNTRL_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#ga5ffa2c9626e069f82893b9411e022744">XTTCPS_CNT_CNTRL_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#ga43586f12a9aab60acf515b80f25bc0a6">XTtcPs_ReadReg</a>, and <a class="el" href="group__ttcps__v3__0.html#gae272f5debb32f8d43e5df1e85df75922">XTtcPs_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="gac08478cc050c41cc435a3f2b49b4c874"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTtcPs_SetPrescaler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_ttc_ps.html">XTtcPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>PrescalerValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps_8c.html">xttcps.c</a>&gt;</code></p>

<p>This function sets the prescaler enable bit and if needed sets the prescaler bits in the control register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_ttc_ps.html" title="The XTtcPs driver instance data. ">XTtcPs</a> instance. </td></tr>
    <tr><td class="paramname">PrescalerValue</td><td>is a number from 0-16 that sets the prescaler to use. If the parameter is 0 - 15, use a prescaler on the clock of 2^(PrescalerValue+1), or 2-65536. If the parameter is XTTCPS_CLK_CNTRL_PS_DISABLE, do not use a prescaler.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None </dd></dl>

<p>References <a class="el" href="struct_x_ttc_ps___config.html#ae6953c208634412c4282d3f4841287ef">XTtcPs_Config::BaseAddress</a>, <a class="el" href="struct_x_ttc_ps.html#abb9f7fb33b935a868d692e0d90542ac9">XTtcPs::Config</a>, <a class="el" href="struct_x_ttc_ps.html#aac0267992556670f31d2fa1cb7d1a889">XTtcPs::IsReady</a>, <a class="el" href="group__ttcps__v3__0.html#ga3dcabe06c5c961d7613cd0d42a6b6e8e">XTTCPS_CLK_CNTRL_OFFSET</a>, <a class="el" href="group__ttcps__v3__0.html#gadc32c3958d06e5b137993806c2637244">XTTCPS_CLK_CNTRL_PS_DISABLE</a>, <a class="el" href="group__ttcps__v3__0.html#gaf88edd6685cf410553a53f457aada794">XTTCPS_CLK_CNTRL_PS_EN_MASK</a>, <a class="el" href="group__ttcps__v3__0.html#ga96a6a02566f44a4a2cfc7df72df0b7f5">XTTCPS_CLK_CNTRL_PS_VAL_MASK</a>, <a class="el" href="group__ttcps__v3__0.html#ga07e8e493ecd0674215853210e2371a96">XTTCPS_CLK_CNTRL_PS_VAL_SHIFT</a>, <a class="el" href="group__ttcps__v3__0.html#ga43586f12a9aab60acf515b80f25bc0a6">XTtcPs_ReadReg</a>, and <a class="el" href="group__ttcps__v3__0.html#gae272f5debb32f8d43e5df1e85df75922">XTtcPs_WriteReg</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="gac913ca73956d600d4cced1b5cab30459"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_ttc_ps___config.html">XTtcPs_Config</a> XTtcPs_ConfigTable[XPAR_XTTCPS_NUM_INSTANCES]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__sinit_8c.html">xttcps_sinit.c</a>&gt;</code></p>

<p>This table contains configuration information for each TTC device in the system. </p>

</div>
</div>
<a class="anchor" id="gac913ca73956d600d4cced1b5cab30459"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_ttc_ps___config.html">XTtcPs_Config</a> XTtcPs_ConfigTable[XPAR_XTTCPS_NUM_INSTANCES]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xttcps__g_8c.html">xttcps_g.c</a>&gt;</code></p>

<p>This table contains configuration information for each TTC device in the system. </p>

</div>
</div>
</div><!-- contents -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
